#include <iostream>

class cube
{
    int m_h = 0;
    int m_l = 0;
    int m_w = 0;
public:
    cube(int l, int w, int h){
        m_l = l;
        m_w = w;
        m_h = h;
    }
    int S(){
        return 2 * (m_h * m_l + m_h * m_w + m_l * m_w);
    }  
    int V(){
        return m_h * m_l * m_w;
    }

};
int main()
{
    cube c1(1,2,3);
    cube c2(2,2,3);
    std::cout<< c1.S() <<std::endl;
    std::cout<< c1.V() <<std::endl;
    std::cout<< c2.S() <<std::endl;
    std::cout<< c2.V() <<std::endl;
    return 0;
}